import 'package:flumvvm/route_view_model.dart';
import 'package:flutter/material.dart';
import 'package:framelib/base/base_view.dart';
import 'package:get/get.dart';

String routePage = '/RoutePage';
class RoutePage extends GetWidget {
  @override
  Widget build(BuildContext context) {
   return
     PageRouteBuild<RouteViewModel>(
       builder: (viewmodel){
     return Scaffold(
       appBar: AppBar(
         title: Text('RoutePage'),
       ),
       body: Column(
         children: [
           Center(
             child: Text('${viewmodel.i}'),
           ),
           MaterialButton(onPressed: ()=>viewmodel.addNum(),color: Colors.blue,child: Text('点击'),)
         ],
       ),
     );
   });
  }

}
